package com.sunelec.service;

import com.sunelec.pojo.Relationship;
import com.sunelec.pojo.SunElecResult;
import com.sunelec.pojo.Users;

import java.util.List;

/**
 * @Author: 吴遵明
 * @Description: 二级用户注册用的Service,和关联三级用户
 * @Date: Create in 2018/05/07
 * @Modified By:
 */

public interface TwoLevelUserService {

    SunElecResult createUser(Users users);

    List<Users> selectUsers(int type);

    List<Users> selectAssociateUser(int type);

    int updateUserById(Users user);

    //根据所有3级leveluser获得relationship<list>
    List<Relationship> selectRelationshipByLeveluser(List<String> leveluser);

    //2级用户关联3级用户
    void updateRelationship(Relationship relationship);
}
